﻿
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>订单支付 - Alipay.AopSdk.Core3.1</title>
    <link href="~/layui/css/layui.css" rel="stylesheet" />
    <script src="~/layui/layui.all.js"></script>
</head>
<body>
    <div class="layui-container">
        <div class="layui-row lrow">&nbsp;</div>
        <div class="layui-row lrow">&nbsp;</div>
        <div class="layui-row">
            <div class="layui-form">
                <div class="layui-form-item">
                    <label class="layui-form-label">商户订单号</label>
                    <div class="layui-input-block">
                        <input type="text" id="tradeno" name="tradeno" required lay-verify="required" placeholder="商户订单号" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">订单名称</label>
                    <div class="layui-input-block">
                        <input type="text" id="subject" name="subject" required lay-verify="required" placeholder="订单名称" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">付款金额</label>
                    <div class="layui-input-block">
                        <input type="text" id="totalAmout" name="totalAmout" required lay-verify="required|number" placeholder="付款金额" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">商品描述</label>
                    <div class="layui-input-block">
                        <input type="text" id="itemBody" name="itemBody" required lay-verify="required" placeholder="商品描述" autocomplete="off" class="layui-input">
                    </div>
                </div>

                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <a class="layui-btn" onclick="laysubmit();">立即提交</a>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <script>
        var form = layui.form;
        var $ = layui.jquery;

        function laysubmit() {
            var tradeno = $("#tradeno").val();
            var subject = $("#subject").val();
            var totalAmout = $("#totalAmout").val();
            var itemBody = $("#itemBody").val();

            $.post("/Waplay/PayRequest", { tradeno: tradeno, subject: subject, totalAmout: totalAmout, itemBody: itemBody }, function (data) {

            });
        }
    </script>
</body>
</html>
